<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/9/7
 * Time: 22:26
 */

namespace app\models;


use yii\db\ActiveRecord;

class User1 extends ActiveRecord {

    public $id;
    public $username;
    public $password;

    public static function tableName()
    {
        return 'user1';
    }

    public function rules()
    {
        return [[["username","password"],"required",],];


    }

}